﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Top.Data;

namespace Top.Base.Common
{
    public static class DataBase
    {
        /// <summary>
        /// 默认default的连接字符串 可读写
        /// </summary>
        /// <returns></returns>
        public static DbTour Default()
        {
            return new DbTour();
        }

        /// <summary>
        /// 读写数据库连接字符串
        /// </summary>
        /// <returns></returns>
        public static DbTour Write()
        {
            return new DbTour("write");
        }

        /// <summary>
        /// 只读数据库连接字符串
        /// </summary>
        public static DbTour Reader()
        {
            return new DbTour("reader");
        }
    }
}
